Skip to content

[2.7] bpo-30264: ExpatParser now closes the source#1476

Merged
vstinner merged 1 commit into
python:2.7from
vstinner:sax_27
May 5, 2017
Merged

[2.7] bpo-30264: ExpatParser now closes the source#1476
vstinner merged 1 commit into
python:2.7from
vstinner:sax_27

Conversation

@vstinner

@vstinner vstinner commented May 5, 2017

Copy link
Copy Markdown
Member

ExpatParser.parse() of xml.sax.xmlreader now closes the source: close
the file object or the urllib object if source is a string (not an
open file-like object).

Add test_parse_close_source() unit test.

ExpatParser.parse() of xml.sax.xmlreader now closes the source: close
the file object or the urllib object if source is a string (not an
open file-like object).

Add test_parse_close_source() unit test.
@vstinner vstinner changed the title bpo-30264: ExpatParser now closes the source [2.7] bpo-30264: ExpatParser now closes the source May 5, 2017
@vstinner vstinner merged commit d81f9e2 into python:2.7 May 5, 2017
@vstinner vstinner deleted the sax_27 branch May 5, 2017 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants